package shejimoshi.jianzaozhemoshi;
// 具体建造者
public class ConcreteCarBuilder implements CarBuilder {
    Car car=new Car();
    @Override
    public void buildEngine() {
        car.setEngine("v8");
    }

    @Override
    public void buildTires() {
        car.setTires("Alloy");
    }

    @Override
    public void buildColor() {
        car.setColor("red");
    }

    @Override
    public Car build() {
        return car;
    }
}
